import request from '../utils/request'

// 获取我的申请记录
export function getMyApplications(params) {
  return request({
    url: '/api/application/my-applications',
    method: 'get',
    params,
  })
}

// 提交岗位申请
export function submitApplication(data) {
  return request({
    url: '/api/application/apply',
    method: 'post',
    data,
  })
}

// 获取申请详情
export function getApplicationDetail(id) {
  return request({
    url: `/api/application/${id}`,
    method: 'get',
  })
}

// 取消申请
export function cancelApplication(id) {
  return request({
    url: `/api/application/cancel/${id}`,
    method: 'delete',
  })
} 